﻿using System;
using System.ComponentModel.Composition;

namespace AxeFrog.Net.Mail
{
	[MetadataAttribute]
	[AttributeUsage(AttributeTargets.Class)]
	public class ExportMailSenderAttribute : ExportAttribute
	{
		public string Name { get; private set; }

		public ExportMailSenderAttribute(string name)
			: base(typeof(IMailSender))
		{
			Name = name;
		}
	}

	public interface IMailSenderMetadata
	{
		string Name { get; }
	}
}
